<form class="layui-form" action="" method="post" name="myform" id="myform">
	<div class="manniucms-sub-content">
		<div class="layui-box">
			<fieldset class="layui-elem-field">
				<legend>规则修改</legend>
				<div class="layui-field-box">
					<div class="layui-form-item">
						<label class="layui-form-label">规则名称：</label>
						<div class="layui-input-block">
							<input type="text" name="data[title]" id="mn_title" value="{$data.title}" required lay-verify="required" placeholder="规则名称" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">规则标识：</label>
						<div class="layui-input-block">
							<input type="text" name="data[name]" id="mn_name" value="{$data.name}" required lay-verify="required" placeholder="规则标识" autocomplete="off" class="layui-input">
							<div class="layui-form-mid">规则的唯一标识，只能是字母和数字，下划线 _ 及破折号 -</div>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">附加条件：</label>
						<div class="layui-input-block">
							<input type="text" name="data[condition]" id="mn_condition" value="{$data.condition}" placeholder="附加条件" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">条件开关：</label>
						<div class="layui-input-block">
							<input type="radio" name="data[type]" value="1" title="开启" {if $data['type']}checked{/if}>
							<input type="radio" name="data[type]" value="0" title="关闭" disabled>
						</div>
						<div class="layui-form-mid">附加条件开关，如果关闭则不进行附加条件验证</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">规则禁用：</label>
						<div class="layui-input-block">
							<input type="radio" name="data[status]" value="1" title="启用" {if $data['status']}checked{/if}>
							<input type="radio" name="data[status]" value="0" title="禁用" {if !$data['status']}checked{/if}>
						</div>
					</div>
				</div>
			</fieldset>
		</div>
	</div>
	<!-- 底部 -->
	<div class="manniucms-sub-footer">
		<div class="layui-box msf-box text-center">
			<div class="layui-inline">
				<button class="layui-btn" lay-submit><i class="layui-icon">&#xe60a;</i> 保存</button>
				<button type="button" class="layui-btn layui-btn-primary goback"><i class="layui-icon">&#xe603;</i> 返回</button>
			</div>
		</div>
	</div>
</form>